﻿<Controls:MetroWindow x:Class="Shoozla.View.SearchAddinView"
       xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
        xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
        xmlns:behaviours="clr-namespace:MahApps.Metro.Behaviours;assembly=MahApps.Metro" 
        xmlns:s="clr-namespace:Shoozla"
        xmlns:sv="clr-namespace:Shoozla.View"
        xmlns:svm="clr-namespace:Shoozla.ViewModel"
        Title="Select the website" Height="191" Width="460" ShowWindowCommands="False"  ShowInTaskbar="False" ResizeMode="NoResize" WindowStartupLocation="CenterOwner" ShowIconOnTitleBar="False" ShowTitleBar="False" WindowStyle="None">
    <i:Interaction.Behaviors>
        <behaviours:BorderlessWindowBehavior ResizeWithGrip="False" AutoSizeToContent="False" />
    </i:Interaction.Behaviors>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="20"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="35"/>
            <RowDefinition Height="30"/>
        </Grid.RowDefinitions>

        <Label Content="{Binding SummaryDescription}" Grid.Row="1" Height="28" Margin="10,0,0,0"  HorizontalAlignment="Left"  Name="summaryLB" VerticalAlignment="Top" />

        <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
            <Label Content="Website:" Height="28" HorizontalAlignment="Left"  VerticalAlignment="Center" />
            <ComboBox Height="30" HorizontalAlignment="Center" Name="addInCB" ItemsSource="{Binding AddIns}" VerticalAlignment="Center" Width="226" SelectionChanged="addInCB_SelectionChanged">

                <ComboBox.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal">
                            <Image Height="25" Name="searcherLogoIM" Source="{Binding Icon}" HorizontalAlignment="Left"  Stretch="Uniform" VerticalAlignment="Center" Width="105" Margin="0,0,10,0" />
                            <TextBlock Text="{Binding AddInName}" VerticalAlignment="Center"></TextBlock>
                        </StackPanel>
                    </DataTemplate>
                </ComboBox.ItemTemplate>
            </ComboBox>           
        </StackPanel>
        <Label Content="info about the selected addin" Height="30"  Grid.Row="3" HorizontalAlignment="Center"  Name="addinDescLB" VerticalAlignment="Top" Width="418" FontStretch="SemiExpanded" FontStyle="Italic" Background="{DynamicResource AccentColorBrush}" ></Label>
      
        <StackPanel Grid.Row="4" Orientation="Horizontal" HorizontalAlignment="Right"  >
            <Button Content="Cancel" Height="23" HorizontalAlignment="Left" Name="cancelBT" VerticalAlignment="Top" Width="70" Click="cancelBT_Click" />
            <Button Content="Continue"  Height="23" HorizontalAlignment="Left"  Name="continueBT" VerticalAlignment="Top" Width="70" Margin="5,0,5,0"  Click="continueBT_Click" IsDefault="True" />
        </StackPanel>
    </Grid>
</Controls:MetroWindow>
